home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 15 / marylamb.zip / TUNES.H < prev   
Text File  |  1986-03-06  |  3KB  |  78 lines

  1.  
  2. typedef int NOTES;
  3.  
  4. typedef NOTES FAR *LPTUNES;
  5.  
  6. #define OPENSOUND        -1
  7. #define CLOSESOUND        -2
  8. #define SETVOICEQUEUESIZE   -3
  9. #define SETVOICEACCENT        -4
  10. #define SETVOICEENVELOPE    -5
  11. #define SETSOUNDNOISE        -6
  12. #define SETVOICESOUND        -7
  13. #define STARTSOUND        -8
  14. #define STOPSOUND        -9
  15. #define WAITSOUNDSTATE        -10
  16. #define SYNCALLVOICES        -11
  17. #define COUNTVOICENOTES     -12
  18. #define GETTHRESHOLDEVENT   -13
  19. #define GETTHRESHOLDSTATUS  -14
  20. #define SETVOICETHRESHOLD   -15
  21.  
  22. int        FAR PASCAL OpenSound();
  23. int        FAR PASCAL CloseSound();
  24. int        FAR PASCAL SetVoiceQueueSize(int, int);
  25. int        FAR PASCAL SetVoiceNote(int, int, int, int);
  26. int        FAR PASCAL SetVoiceAccent(int, int, int, int, int);
  27. int        FAR PASCAL SetVoiceEnvelope(int, int, int);
  28. int        FAR PASCAL SetSoundNoise(int, int);
  29. int        FAR PASCAL SetVoiceSound(int, int, int);
  30. int        FAR PASCAL StartSound();
  31. int        FAR PASCAL StopSound();
  32. int        FAR PASCAL WaitSoundState(int);
  33. int        FAR PASCAL SyncAllVoices();
  34. int        FAR PASCAL CountVoiceNotes(int);
  35. LPINT        FAR PASCAL GetThresholdEvent();
  36. int        FAR PASCAL GetThresholdStatus();
  37. int        FAR PASCAL SetVoiceThreshold(int, int);
  38.  
  39. /* constants used to specify return condition for WaitSoundState */
  40.  
  41. #define QUEUEEMPTY    0
  42. #define THRESHOLD    1
  43. #define ALLTHRESHOLD    2
  44.  
  45. /* constants used to specify accent mode */
  46.  
  47. #define     S_NORMAL      0
  48. #define     S_LEGATO      1
  49. #define     S_STACCATO      2
  50.  
  51. /* constants used to specify source in SetSoundNoise */
  52. #define     S_PERIOD512   0   /* freq = N/512 high pitch, less coarse hiss */
  53. #define     S_PERIOD1024  1   /* freq = N/1024 */
  54. #define     S_PERIOD2048  2   /* freq = N/2048 low pitch, more coarse hiss */
  55. #define     S_PERIODVOICE 3   /* source is frequency from voice channel (3) */
  56.  
  57. #define     S_WHITE512      4   /* freq = N/512 high pitch, less coarse hiss */
  58. #define     S_WHITE1024   5   /* freq = N/1024 */
  59. #define     S_WHITE2048   6   /* freq = N/2048 low pitch, more coarse hiss */
  60. #define     S_WHITEVOICE  7   /* source is frequency from voice channel (3) */
  61.  
  62. #define     S_SERDVNA      -1      /* device not available */
  63. #define     S_SEROFM      -2      /* out of memory */
  64. #define     S_SERMACT      -3      /* music active */
  65. #define     S_SERQFUL      -4      /* queue full */
  66. #define     S_SERBDNT      -5      /* invalid note */
  67. #define     S_SERDLN      -6      /* invalid note length */
  68. #define     S_SERDCC      -7      /* invalid note count */
  69. #define     S_SERDTP      -8      /* invalid tempo */
  70. #define     S_SERDVL      -9      /* invalid volume */
  71. #define     S_SERDMD      -10      /* invalid mode */
  72. #define     S_SERDSH      -11      /* invalid shape */
  73. #define     S_SERDPT      -12      /* invalid pitch */
  74. #define     S_SERDFQ      -13      /* invalid frequency */
  75. #define     S_SERDDR      -14      /* invalid duration */
  76. #define     S_SERDSR      -15      /* invalid source */
  77. #define     S_SERDST      -16      /* invalid state */
  78.